import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { UserLsComponent } from './user-ls/user-ls.component';
import { UserRegisteComponent } from './user-registe/user-registe.component';
import { UserEditorComponent } from './user-editor/user-editor.component';
const routerConfig: Routes = [
  { path: '', component: UserLsComponent, pathMatch: 'full' },
  { path: 'register', component: UserRegisteComponent },
  { path: 'editor', component: UserEditorComponent },
];

@NgModule({
  imports: [
    RouterModule.forChild(routerConfig)
  ],
  exports: [
    RouterModule,
  ],
  bootstrap: [UserLsComponent]
})
export class UserRouterModule { 
  constructor() {
  }
}